package com.example.bmanliku;

/**
 * @description 存储File类信息
 */
public class FileModel {

    private String name;
    private String path;
    private boolean isDirectory;

    public FileModel(String name, String path, boolean isDirectory)
    {
        this.name = name;
        this.path = path;
        this.isDirectory = isDirectory;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public boolean isDirectory()
    {
        return isDirectory;
    }

    public void setDirectory(boolean directory)
    {
        isDirectory = directory;
    }

    @Override
    public String toString()
    {
        return "FileModel{" +
                "name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", isDirectory=" + isDirectory +
                '}';
    }
}
